package jwr.ex;

public class ExSamp {

	public static void main(String[] args) {
		Samp sm = new Samp(4);
		System.out.println(sm.id);
		sm = new Samp();
		System.out.println(sm.id);
	}

}

class Samp{
	int id;
	public Samp(int x) {
		this.id = x;
	}
	public Samp(){
		this(0);
		System.out.println("생성자 호출");
	}
}